if exists("b:did_ftplugin")
  finish
endif
let b:did_ftplugin = 1

let s:cpo_save = &cpo
set cpo&vim

" Insert current date.
iab <expr> <buffer> ddate strftime("%m/%d/%Y")
iab <expr> <buffer> ldate strftime("%m/%d")
iab <expr> <buffer> sdate strftime("*%m/%d/%Y*")
iab <expr> <buffer> mdate strftime("## %m/%d/%Y ##")

" Mark as done/skip and move to bottom of block.
iab <buffer> d: Done: <Esc>ddk}P{jj
iab <buffer> s: Skip: <Esc>ddk}P{jj

let &cpo = s:cpo_save
unlet s:cpo_save
